package com.cyys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyys.entity.Adv;
import com.cyys.entity.CategoryGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description CategoryGoodsMapper
 * @author Administrator
 * @date 2022-05-26 15:06
 */

public interface CategoryGoodsMapper  extends BaseMapper<CategoryGoods> {

    /**
     * 多表查询id
     * @param categoryGoods
     * @return
     */
    List<CategoryGoods> findCategoryGoodsList(CategoryGoods categoryGoods);

    List<CategoryGoods> listByIds(Integer id);

    /**
     * 多表查询label    推荐——新品
     * @param categoryGoods
     * @return
     */
    List<CategoryGoods> findUserListRecommend(CategoryGoods categoryGoods);

    /**
     * 搜索
     * @param categoryGoods
     * @return
     */
    List<CategoryGoods> search(CategoryGoods categoryGoods);
}
